package com.itheima.admin.feign;

import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;


@FeignClient(name = "leadnews-admin",contextId = "AdChannelFeign")
public interface AdChannelFeign {


    /**
     * 通过远程调用admin微服务查询频道信息
     * @param
     * @return
     */
    @PostMapping("/api/adChannel/list")
    ResultVo<List<AdChannel>> list();


}
